/**
 * @name         RepNET Agency Model
 * @version      1.0a
 * @author       Kasun Rathnayaka <kazar55@gmail.com>
 * @author       Ramindu Deshapriya <rasade88@gmail.com>
 * @author 		 Prabodha Dissanayake <prabodha89@gmail.com>
 * @author 		 Thusira Dissanayake <thusira14@gmail.com>
 * @about        Developed by MiDi
 * @license	 http://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License (LGPL)
 * @lastModified 2012.09.24
 */
package com.midi.wholesale.models;

public class Route extends ReturnedElement {
	public Route(int id,String name) {
		this.id = id;
		this.name = name;
	}

	public String getNameOrId() {
		if ( this.name.equals("%") ) {
			return this.name;
		}
		else return Integer.toString(this.id);
	}
	@Override
	public String toString() {
		return this.name;
	}
}
